home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1980-01-01 | 648 b | 23 lines |
- 10 REM this program resets the memory size indication at 40:13 prior to
- 20 REM quadmaster2 software access, to enable use of memory above the
- 30 REM maximum system board switch settings.
- 40 OPEN "meminst.dat" FOR INPUT AS #1: INPUT #1, MEM: CLOSE #1
- 50 DEF SEG=64
- 51 O1=PEEK(19): O2=PEEK(20)
- 52 SWSET=((INP(98) AND 15)+2)*32
- 53 MSET=O1+256*O2
- 54 IF MSET<>SWSET THEN GOTO 150
- 60 M1=MEM MOD 256
- 70 M2=INT(MEM/256)
- 90 REM poke into memory
- 100 POKE 19,M1
- 110 POKE 20,M2
- 120 REM initialize memory above that initialized by dos
- 125 LOCATE 4,1: PRINT "start = ";SWSET;" k; end = ";MEM-1;" k"
- 130 FOR I%= SWSET TO MEM-1
- 132 LOCATE 10,1:PRINT I%;" k"
- 135 DEF SEG=I%*64
- 140 FOR J%=0 TO 1023
- 143 POKE J%,0: NEXT J%: NEXT I%
- 150 SYSTEM
-